﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SoundEdge.WinControls.Base
{
    //internal class AbstractTypeDescriptionProvider
    //{
    //    public AbstractTypeDescriptionProvider()
    //    : base(TypeDescriptor.GetProvider(typeof(BaseOptionsPage)))
    //{
    //}

    //public override Type GetReflectionType(Type objectType, object instance)
    //{
    //    if (objectType == typeof (BaseOptionsPage))
    //        return typeof (ReplaceForm);

    //    return base.GetReflectionType(objectType, instance);
    //}

    //public override object CreateInstance(IServiceProvider provider, Type objectType, Type[] argTypes, object[] args)
    //{
    //    if (objectType == typeof (BaseOptionsPage))
    //        objectType = typeof (ReplaceForm);

    //    return base.CreateInstance(provider, objectType, argTypes, args);
    //} 
    //}
}
